# *args 参数 args 会被打包成一个元组

def myfunc(**kwargs):
    print(type(kwargs))  # <class 'dict'>
    print(kwargs)


myfunc(a=1, b=2, c=3)  # {'a': 1, 'b': 2, 'c': 3}


# a
# b:
# c:
def mix_func(a, *b, **c):
    print(a, b, c)


# a:1
# b:2,3,4
# c:x=5, y=6
mix_func(1, 2, 3, 4, x=5, y=6)  # 1 (2, 3, 4) {'x': 5, 'y': 6}

# **kargs 参数 kargs 会被打包成一个字典

print(help(str.format))
# format(...)
#     S.format(*args, **kwargs) -> str
#
#     Return a formatted version of S, using substitutions from args and kwargs.
#     The substitutions are identified by braces ('{' and '}').
#
# None

